<%-- 
    Document   : randombook.jsp
    Created on : 20-06-2011, 23:55:06
    Author     : ngloc_it
--%>

<%@page import="uit.jee.lib.dto.BookDTO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%
    BookDTO book = (BookDTO) session.getAttribute("bookrandom");
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        
    </head>
    <body>
        <h2><img src="../images/title_book_review.gif" width="94" height="18" alt="HinhAnh" /></h2>

        <p>Sách hay ngẫu nhiên </p>
        <table border="1" id="bookrandom">
        <%if(book != null){%>
            <tr>
                <%
                String imgSrc = book.getImgPath();
                %>
                <td width="84"> <img src=".."<%=imgSrc%> width="79" height="83" alt="HinhAnh" class="left" /></td>
                <td width="58"><p><%=book.getName()%></p>
                    <p><%=book.getBookType()%> </p></td>
                <td width="51"><%=book.getAuthor()%></td>
                <td width="54"><%=book.getPublisher()%></td>
                <td width="92"><%=book.getCounter()%></td>
                <td style="border: none;"><input type="button" value=">>" onclick="nextRandom()"></td>
            </tr>
         <%}%>
     </table>
    </body>
</html>
